//
//  MKDownloadListCollectionViewCell.m
//  ManKeCartoon
//
//  Created by 邹功梁 on 15/10/27.
//  Copyright © 2015年 ManKe. All rights reserved.
//

#import "MKDownloadListCollectionViewCell.h"
#import "MKBaseHeader.h"
@implementation MKDownloadListCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _seq_noLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        _seq_noLabel.textAlignment = NSTextAlignmentCenter;
        _seq_noLabel.textColor = [UIColor blackColor];
//        [_seq_noLabel setBackgroundColor:[UIColor colorWithRed:0.95 green:0.95 blue:0.94 alpha:1]];
        
        _hasDownloadLabel = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width - 10 * WIDTH, 0, 10, frame.size.height)];
        _hasDownloadLabel.numberOfLines = 0;
        _hasDownloadLabel.font = [UIFont systemFontOfSize:10.];
        _hasDownloadLabel.textColor = [UIColor whiteColor];
        _hasDownloadLabel.backgroundColor = [UIColor greenColor];
        _hasDownloadLabel.text = @"已下载";
        
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        [_button setFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        
        [self.contentView addSubview:_seq_noLabel];
        [self.contentView addSubview:_button];
//        [self.contentView addSubview:_hasDownloadLabel];
    }
    return self;
}
- (void)setChaptersModel:(MKChaptersModel *)model
{
    [_seq_noLabel setText:model.seq_no];
}
@end
